<div id="user-add-edit">
    <div class="title">
        修改用户信息
    </div>
        <form action="__APP__/User/update" method="post" class="user-add-edit">
            <input type="hidden" name="id" value="<{$data.id}>" />
            <input type="hidden" name="gravatar" class="pic" value="<{$data.gravatar}>" readonly="readonly" />
            <table>
                <tr><th>用户名称：</th><td><input style="border:0;" type="text" name="sendusername" value="<{$data.username}>" readonly="readonly" /></td></tr>
                <tr><th>用户别名：</th><td><input type="text" name="nickname" value="<{$data.nickname}>" /></td></tr>
                <tr><th>用户密码：</th><td><input type="password" name="password" /></td></tr>
                <tr><th style="vertical-align:top;"><a href="javascript:;" class="upload"><button type="button">修改头像</button></a></th>
                    <td class="img">
                        <empty name="data.gravatar">
                                <img src="__PUBLIC__/Content/User/default.jpg" />
                            <else/>
                                <img src="__PUBLIC__/Content/User/<{$data.gravatar}>" />
                        </empty>
                    </td></tr>
                <tr><th>邮箱邮箱：</th><td><input style="border:0;" type="text" name="sendemail"  value="<{$data.email}>" readonly="readonly" /></td></tr>
                <tr><th>所属分组：</th><td>
                    <eq name="data.username" value="admin">

                        <select name="roleid" style="margin-left: 4px;" >
                            <volist name="roleinfo" id="vo">
                                <eq name="vo.id" value="$data.roleuser.roleid">
                                    <option value="<{$vo.id}>" selected="selected"><{$vo.name}></option>
                                </eq>
                            </volist>
                        </select>

                       <else/>

                        <select name="roleid" style="margin-left: 4px;">
                            <volist name="roleinfo" id="vo">
                                <eq name="vo.id" value="$data.roleuser.roleid">
                                    <option value="<{$vo.id}>" selected="selected"><{$vo.name}></option>
                                    <else/>
                                    <option value="<{$vo.id}>"><{$vo.name}></option>
                                </eq>
                            </volist>
                        </select>

                    </eq>



                </td></tr>
                <eq name="data.sex" value="1">
                        <tr><th>用户性别：</th><td><input type="radio" checked="checked" name="sex" value="1" />男
                            <input type="radio" name="sex" value="0" />女</td></tr>
                    <else />
                        <tr><th>用户性别：</th><td><input type="radio" name="sex" value="1" />男
                            <input type="radio" name="sex" checked="checked" value="0" />女</td></tr>
                </eq>

                <eq name="data.username" value="admin">

                        <eq name="data.status" value="1">
                            <tr><th>是否激活：</th><td><input  disabled="disabled" type="radio" checked="checked" name="status" value="1" />是
                                <input  disabled="disabled" type="radio" name="status" value="0" />否</td></tr>
                            <else />
                            <tr><th>是否激活：</th><td><input disabled="disabled" type="radio" name="status" value="1" />是
                                <input  disabled="disabled" type="radio" name="status" checked="checked" value="0" />否</td></tr>
                        </eq>

                    <else/>

                        <eq name="data.status" value="1">
                            <tr><th>是否激活：</th><td><input type="radio" checked="checked" name="status" value="1" />是
                                <input type="radio" name="status" value="0" />否</td></tr>
                            <else />
                            <tr><th>是否激活：</th><td><input type="radio" name="status" value="1" />是
                                <input type="radio" name="status" checked="checked" value="0" />否</td></tr>
                        </eq>

                </eq>



                <tr><td></td><td><input type="submit" class="submit" value="修改用户" /></td></tr>
            </table>
        </form>
</div>
<script type="text/javascript" src="../Public/js/user.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ajaxupload.js"></script>